package com.njh.tools.base;

import android.app.Application;
import android.content.Context;

import com.njh.tools.config.tconstant.Constants;
import com.zxy.recovery.core.Recovery;


/**
 * Created by niejiahuan on 2016/5/31.
 * 父类Application
 */
public class BaseApp extends Application {
    private static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext=this;
        //发生异常进行应用恢复
//        Recovery.getInstance()
//                .debug(Constants.isDebug)
//                .recoverInBackground(false)
//                .silent(Constants.enabled, Recovery.SilentMode.RECOVER_ACTIVITY_STACK)
//                .init(this);
    }

    public static Context getmContext() {
        return mContext;
    }
}
